integrate current to find charge